package com.lguplus.servicepoi.answer;

import org.jdom.Element;

import com.lguplus.servicepoi.exception.XMLCreationException;

public class MapPOIOverlayAnswer extends Answer {

	private String imgUrl;
	
	public MapPOIOverlayAnswer() {
		super();
		
		this.imgUrl = "";
	}

	@Override
	public void runXmlAdaptor() throws XMLCreationException{
		try{
			// 1. Make Root
			this.bodyElem = new Element("mpoa"); 

			// 2. Make Count Element
			Element imgUrl = new Element("image_url");

			// 2-V. Set Value
			imgUrl.setText(this.getImgUrl());

			// 2-A. Add Child Element To Root
			this.bodyElem.addContent(imgUrl);

		}catch(Exception e){
			throw new XMLCreationException(e);
		}

	}

	public String getImgUrl() {
		return imgUrl;
	}

	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}

}
